package cn.jobstart.modelDesc;

import lombok.Data;
import cn.jobstart.model.SpiderMonitor;


import cn.jobstart.enums.SpiderMonitorShowFlagEnum;
import cn.jobstart.enums.SpiderMonitorDelFlagEnum;
import cn.jobstart.enums.SpiderMonitorStatusEnum;
import cn.jobstart.enums.SpiderMonitorDataTypeEnum;

/**
*    @author sunke
*    @Date 2023-09-22 22:03:55
*    @description SpiderMonitorDesc      爬虫监控
*/
@Data
public class SpiderMonitorDesc extends SpiderMonitor {


    private String showFlagDesc;
    private String delFlagDesc;
    private String statusDesc;
    private String dataTypeDesc;

    public String getShowFlagDesc() {
        showFlagDesc=SpiderMonitorShowFlagEnum.getDescByType(getShowFlag());
        return showFlagDesc;
    }
    public String getDelFlagDesc() {
        delFlagDesc=SpiderMonitorDelFlagEnum.getDescByType(getDelFlag());
        return delFlagDesc;
    }
    public String getStatusDesc() {
        statusDesc=SpiderMonitorStatusEnum.getDescByType(getStatus());
        return statusDesc;
    }
    public String getDataTypeDesc() {
        dataTypeDesc=SpiderMonitorDataTypeEnum.getDescByType(getDataType());
        return dataTypeDesc;
    }
}

